home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
007
/
coreaids.arc
/
CHAR_GET.ASM
< prev
next >
Wrap
Assembly Source File
|
1987-06-25
|
771b
|
31 lines
; DESC: gets a character from the keyboard V1.00
; IN: *{REQ_TYPE} (0:get character,1:see if character
; is there,2:get shift status)
; OUT: *{CHAR} character ( high byte is shift status,
; low byte is char.)
; SAMPLE: Callm CHAR_GET,<REQ_TYPE>,<CHAR>
; #######################################################
Extrn PUSHALL:Near
Extrn POPALL:Near
CHAR_GEC Segment
Assume CS:CHAR_GEC
Public CHAR_GET
;notice.
DB 'CHAR_GET - V1.00, Copyright 1987, CoreTechs ',0DH,0AH
CHAR_GET Proc Near
Call PUSHALL ;save registers.
Pop AX ;recover request value.
Int 16H ;get character.
Push AX ;save character and scan code.
Call POPALL ;recover registers.
Ret
CHAR_GET Endp
CHAR_GEC Ends
End